home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
logoff7.zip
/
LOGOFF7.DOC
< prev
next >
Wrap
Text File
|
1992-01-12
|
11KB
|
302 lines
LOGOFF TESTING
Version 7.0
January 12,1992
Written By: John Kleinbauer
Distributed By:
The Free For All BBS
1-201-998-7337
WHAT IS LOGOFF TESTING AND HOW DOES IT WORK ?
LOGOFF TESTING works only with PCBoard 14.5A and it allows you
to have your uploaded files checked after the caller has logged off.
How it works is whenever a file is uploaded PCBTEST.BAT makes
a file called FLAG.001 and $$LOGOFF.BAT makes a file called FLAG.002
whenever someone logs off.The batch file $$LOGON.BAT creates a FLAG.003
whenever someone logs on.These three flag-files give BOARD.BAT it's brains.
When the caller logs off PCBoard drops to DOS and tests files if there
is a FLAG.001 file.But if there is a FLAG.002 or FLAG.003 file then
PCBoard reloads.
WHAT MAKES THIS METHOD BETTER THAN THE REST!
1.Callers don't have to wait online while files are being checked.
2.Checking files at the DOS level stops the board from locking up on
large files.
3.The Program AUTOSCAN can do ZIPS in ZIPS in ZIPS or ARCS in ZIPS and
ZIPS in ARCS all levels all types of compressions.
4.You will be all set for the NEW PKZIP because the NEW PKZIP will
pack tighter but will take longer to unzip and zip.
WHY ?
It all started when a fellow Sysop complained to me that he
had uploaded to a BBS using a 9600 baud modem with the fastest protocol
but then had to sit online while the files were checked.It's funny when
you stop and look at the fact that people are constantly coming out with
protocols that are slightly faster but no one has addressed this issue.
MY GOAL
My GOAL was to get PCBoard to Strip BBS ADS,Scan for Viruses
and Add my BBS AD all after the user logs off.
OBSTACLES
To make matters tough I don't know any real programming except
for simple basic programs so I was forced to use existing software.
WHAT MAKES IT ALL POSSIBLE
The First SECRET is to set PCBoard to drop to DOS After Each Call found
in PCBSetup-Options #1...
The Second SECRET is to add the line " copy pcbtest.bat flag.001 " at the
end of the PCBTEST.BAT...
The Third SECRET is to add the line " copy $$logoff.bat flag.002 " at the
end of the $$LOGOFF.BAT...
The Fourth SECRET is to make a $$LOGON.BAT that has the line
" copy $$logon.bat flag.003 "...
EXAMPLE OF ONE UPLOAD DIRECTORY
Here is my BOARD.BAT with comments and I include it with
this version you need only change your Directory names and put AUTOSCAN
AUTOSCAN.CFG and BBSAD.TXT where they belong.
@echo off
c:
cd \pcb
set pcb=/swap
set dszlog=c:\pcb\pcbdsz.log
if exist remote.bat rename remote.bat remote.sys
if exist event.bat rename event.bat event.sys
if exist door.bat del door.bat
if exist endpcb del endpcb
pcb145
if exist remote.bat remote
if exist door.bat door
if exist event.bat event
if exist endpcb goto end
board
:end
if exist flag.001 goto test
if exist flag.002 goto reload1
if exist flag.003 goto reload2
if exist endpcb goto exit_to_dos
:test
echo ATH1M0 >com1 ;This makes phone busy during testing.....
echo off
cd\upload2 ;Change this to name of your upload directory.....
autoscan
cd\pcb
if exist flag.001 del flag.001 ;Testing is done delete flag.
:RELOAD1
if exist flag.002 del flag.002
:reload2
if exist flag.003 del flag.003
board
:exit_to_dos ;Drop to DOS for maintenance.....
exit
EXAMPLE OF TWO UPLOAD DIRECTORIES
@echo off
c:
cd \pcb
set pcb=/swap
set dszlog=c:\pcb\pcbdsz.log
if exist remote.bat rename remote.bat remote.sys
if exist event.bat rename event.bat event.sys
if exist door.bat del door.bat
if exist endpcb del endpcb
pcb145
if exist remote.bat remote
if exist door.bat door
if exist event.bat event
if exist endpcb goto end ;This is set by hitting the ESC key.....
board
:end
if exist flag.001 goto test
if exist flag.002 goto reload1
if exist flag.003 goto reload2
if exist endpcb goto exit_to_dos
:test
echo ATH1M0 >com1 ;This makes phone busy during testing.....
echo off
cd\upload2 ;Private upload area set it to the name of yours.....
autoscan
e:
cd\upload ;Main upload area set to the name of yours.....
autoscan
c:
cd\pcb
if exist flag.001 del flag.001
:reload1
if exist flag.002 del flag.002
:reload2
if exist flag.003 del flag.003
board
:exit_to_dos ;Drop to DOS for maintenance.....
exit
EASY SETUP !
1 Don't forget to set PCBoard to drop to DOS After Each Call in the
PCBsetup-OPTIONS #1.
2 Put AUTOSCAN and AUTOSCAN.CFG in your path same directory as PKUNZIP,
PKZIP,and SCAN.
3 BBSAD.TXT goes in your PCB directory.
4 Make sure you rename UPLOAD2 and UPLOAD to the name of your directory
in one of the two BOARD.BATs I have supplied.
5 Add the lines " copy pcbtest.bat flag.001 " to the very end of your
PCBTEST.BAT or use the one I have supplied.
6 Put the $$LOGOFF.BAT I have supplied in the PCB directory.
7 Make sure the line " echo ATH1M0 >com1 " will pickup your phone line.
Your modem might need a different command or you might need to change
com1 to com2.
8 Using the program that comes with PCBoard (MKTXT145) go into you
PCBTEXT on line 575 and change it to %C:\PCB\GEN\LOGOFF,this will
call up the screen (LOGOFF) I have supplied or make your own.It tells
the user that you are quickly verifying the program and further
testing will take place when the caller logs off.
9 Put my drawing LOGOFF or yours in the C:\PCB\GEN directory.
10 Put $$LOGON.BAT in your PCB directory.
HISTORY OF LOGOFF TESTING
Version 1.0 Contained information to make three batch files
11-20-91 needed to do LOGOFF TESTING.
Version 2.0 Contained information to do LOGOFF TESTING with only
11-22-91 BOARD.BAT an example BOARD.BAT was included.
Version 3.0 Contains information to do LOGOFF TESTING with only BOARD.BAT
11-23-91 and comes with a working BOARD.BAT that will now busy the
phone during testing.
Version 4.0 Added line to PCBTEST.BAT to flag BOARD.BAT when there are
12-16-91 new files to be tested.Now if there are no new files
to be tested then the board is reloaded making overall speed
very fast.
Version 5.0 By utilizing $$LOGOFF.BAT to create FLAG.TWO I was able to
12-19-91 eliminate the program PAUZ.Hitting ESC than 1 is no longer
necessary.Files are now tagged by the PCBTEST.BAT as they are
uploaded so that the BOARD.BAT is simpler to setup if you have
more than one directory to scan.
Version 6.0 Added $$LOG0N.BAT to fix problem if caller dropped or lost
12-22-91 carrier while in a DOOR,PCBoard would drop to DOS.
Version 7.0 Modified BOARD.BAT so Qmail would not cause the board to
01-12-92 drop to dos after someone exited it.
FILES CONTAINED IN THIS PACKAGE
LOGOFF7.ZIP The real name of this ZIP
BBSAD.TXT Example of my BBS AD.
BOARD.BAT Example BOARD.BAT testing of one upload directory.
BOARD2.BAT Example BOARD.BAT testing of two upload directories
LOGOFF The screen I show my users while PCBTEST.BAT is running.
LOGOFF7.DOC This DOC.
PCBTEST.BAT A working PCBTEST.BAT with " copy pcbtest.bat flag.001 "
to the end.
$$LOGOFF.BAT This tells the BOARD.BAT that a normal logoff has occurred
by creating FLAG.002...
$$LOGON.BAT This tells the BOARD.BAT that a normal logon has occurred
by creating FLAG.003...
SOME LAST WORDS ABOUT LOGOFF TESTING AND AUTOSCAN
The first time you run AUTOSCAN it will run a long time while it
unzips each file,scans it and puts the name of the file into the DAT.So
you can save yourself some time by moving some of the files to the
directories where they belong before you run this program. Try to
remember not to DELETE the DATs found in each directory or you will be
scanning the files all over again after the next caller hangs up.The
registered version of AUTOSCAN will scan more than one directory just
using the AUTOSCAN.CFG but I have not tried this because it would only
mess up your day being you haven't registered yours yet.
Don't forget the program AUTOSCAN is not free but my IDEA is
and you can reach me on my BBS if you need something.
Special Thanks To........
Vincent Rifici No Nonsense BBS For telling me about the
908-654-3178 "drop to dos after each call"
and to hang in there.
Bob Roncaglio 221-B Baker St. For being the first to
201-661-2690 install Logoff Testing
and never doubting my
IDEA.
Neil Stewart E.I.B. System For bringing to my attention
201-664-7217 the need for Logoff Testing
and trying it out.
Bill Leaming Vocations Central For helping me with the Qmail
201-485-5705 problem and pointing out a
test sequencing problem.
GOOD LUCK
John Kleinbauer
15 Fisher Place
North Arlington
New Jersey 07031
United States of America
THE FREE FOR ALL BBS
1-201-998-7337